#include<stdio.h>

int main(void) {
    int n;
    int sum = 0;
    while(1) {
        scanf("%d", &n);
        if (n <= 0) break;
                    
        if(n % 2 != 0)sum += n;
    }
    printf("sum=%d", sum);

}